package apus.entity;

/**
 * The <code>RealOrganization</code> class represents legal person (extends 
 * {@code RealSubscriber}).
 * @author  Maxim Vasilevsky
 * @author  Roman Dyatkovsky
 * @since APUS v0.1
 * @see RealSubscriber
 */
public class RealOrganization extends RealSubscriber implements Organization {

    /** Number of the passport. */
    private String bankingDetails;
    
    /**
     * Initializes a newly created {@code RealOrganization} object with an indication 
     * of name.
     * @param name RealOrganization name .
     */
    public RealOrganization(String name) {
        super(name);
    }
    
    public RealOrganization(int id){
        super(id);
    }

    /**
     * Default constructor
     */
    public RealOrganization() {
    }
    
    /**
     * Initializes a newly created {@code RealOrganization} object with an indication 
     * of name, address and list of phone numbers.
     * @see Subscriber.
     */
    public RealOrganization(String name, String address) {
        super(name, address);
    }

    @Override
    public String getBankingDetails() {
        return bankingDetails;
    }

    @Override
    public void setBankingDetails(String bankingDetails) {
        this.bankingDetails = bankingDetails;
    }

    @Override
    public String getSubscriberType() {
        return "organization";
    }

}
